package com.mall.shop.feign.member;

import com.mall.shop.entity.member.Member;
import com.mall.shop.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-shop-member")
public interface MemeberFeignService {

    @PostMapping("/member/findMemberByMobile")
    R<Member> findMemberByMobile(@RequestBody String mobile);

    @PostMapping("/member/register")
    R<Boolean> register(@RequestBody Member member);
}
